<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class SiteRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'title' => ['required', 'between:3,100'],
            'domain' => ['required', 'url']
        ];
    }

    public function attributes()
    {
        return ['domain' => '站点域名'];
    }
}
